@import '../index.scss';

.g-img {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 100px;

  .item {
    position: relative;
    width: 100%;
    height: 100%;
    &-img {
      width: 100%;
      height: 100%;
    }
    &-up {
      @extend .mask;
      display: none;
      &-icon {
        font-size: $font-size-ll;
        color: $color-white;
      }
    }
    &:hover {
      .item-up {
        display: block;
        cursor: pointer;
        & > i {
          @extend .center;
        }
      }
    }
  }
}

//图片预览的样式
.g-img-preview {
  @extend .mask;
  position: fixed;
  z-index: 2000;
  padding: 40px;

  .center {
    text-align: center;
    width: calc(100% - 160px);
  }
  .outer {
    display: inline-block;
    position: relative;
    width: 60%;
    height: 430px;
    overflow: hidden;
    background: $color-white;
    &-img {
      position: relative;
      width: 100%;
    }
    &-exit {
      position: absolute;
      right: 0;
      top: 0;
      color: $color-white;
      padding: 5px;
      font-size: $font-size-l;
      background: $color-gray-tran-dark;
      border-radius: 50%;
    }
  }
  .control {
    width: 300px;
    padding: 8px 30px;
    margin: 27px auto 0;
    background-color: $color-gray-tran-dark;
    border-radius: 8px;
    &-icon {
      font-size: $font-size-l;
      color: $color-white;
      margin: 8px;
    }
    &-num {
      font-size: $font-size-l;
      color: $color-white;
      letter-spacing: 0;
      text-align: center;
      margin-right: 8px;
      &:first-child {
        margin-left: 8px;
      }
    }
  }
  .icon {
    @extend .center-column;
    color: $color-black;
    font-size: $font-size-l;
    padding: 10px;
    border-radius: 5px;
    background: $color-white;
    &:last-child {
      right: 40px;
    }
  }

  /*------------------------重写系统样式------------------------*/
  //选中状态
  ::selection {
    background: transparent;
  }
}
